/* eslint-disable */
// @ts-ignore
import { queryOptions, useMutation } from '@tanstack/vue-query';
import type { DefaultError } from '@tanstack/vue-query';
import request from '@/utils/request';
import { CustomRequestOptions } from '@/interceptors/request';

import * as apis from './weixinmenpiao';
import * as API from './types';

/** 详情 GET /tourism/client/c/wxticket/info */
export function detailUsingGet4QueryOptions(options: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.detailUsingGET4Params;
  options?: CustomRequestOptions;
}) {
  return queryOptions({
    queryFn: async ({ queryKey }) => {
      return apis.detailUsingGet4(queryKey[1] as typeof options);
    },
    queryKey: ['detailUsingGet4', options],
  });
}

/** 分页 GET /tourism/client/c/wxticket/page */
export function pageUsingGet4QueryOptions(options: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.pageUsingGET4Params;
  options?: CustomRequestOptions;
}) {
  return queryOptions({
    queryFn: async ({ queryKey }) => {
      return apis.pageUsingGet4(queryKey[1] as typeof options);
    },
    queryKey: ['pageUsingGet4', options],
  });
}
